package com.training1.core.entity;

import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

import org.apache.ibatis.type.Alias;

import com.training1.core.common.entity.DataEntity;

@Alias("firSecContractExe")
/**
 * 一审/二审合同详情
 *
 */
public class FirSecContractExeEntity extends DataEntity{
	
	private static final long serialVersionUID = -348179059019539374L;
	private String customerId;//客户id
	private String cellPhone;//客户手机号
	private String customerName;//客户姓名
	private String residenceAddress;//户口所在地											
	private String agreeAddress;//履约地址
	private String card;//身份证号
	private String emerContact;//紧急联系方式
	private String origin;//籍贯
	private Integer marriage;//婚姻状况,0未婚,1已婚
	private Integer sex;	//性别,(0:男 1：女)
	
	private Integer serFee;//服务费率(使用时候需要除以100)
	private String usageq;//用途
	private BigDecimal expAmount; //拟借款金额
	private Integer expCyc;//拟借款期数(周)
	private Date expDate;//拟借款日期
	private String expDateStr;//格式化日期
	private String memo;//合同备注
	private String firInsReason;//一审拒绝理由
	private String secInsReason;//二审拒绝理由
	
	private BigDecimal adviseAmount;//建议金额
	private Integer adviseCyc;//建议期数
	private String recom;//推荐人
	private String recomPhone;//推荐人电话
	
	private BigDecimal approvalAmount;//审批金额
	private Integer approvalCyc;//审批金额
	
	private Date SecInsDate;//二审日期
	
	private List<ContractAttachEntity> contractAttaches;//所有附件
 
	
	
	public String getCustomerId() {
		return customerId;
	}
	public void setCustomerId(String customerId) {
		this.customerId = customerId;
	}
	
	public String getCellPhone() {
		return cellPhone;
	}
	public void setCellPhone(String cellPhone) {
		this.cellPhone = cellPhone;
	}
	public String getCustomerName() {
		return customerName;
	}
	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}
	public String getResidenceAddress() {
		return residenceAddress;
	}
	public void setResidenceAddress(String residenceAddress) {
		this.residenceAddress = residenceAddress;
	}
	public String getAgreeAddress() {
		return agreeAddress;
	}
	public void setAgreeAddress(String agreeAddress) {
		this.agreeAddress = agreeAddress;
	}
	public String getCard() {
		return card;
	}
	public void setCard(String card) {
		this.card = card;
	}
	public String getEmerContact() {
		return emerContact;
	}
	public void setEmerContact(String emerContact) {
		this.emerContact = emerContact;
	}
	public String getOrigin() {
		return origin;
	}
	public void setOrigin(String origin) {
		this.origin = origin;
	}
	public Integer getMarriage() {
		return marriage;
	}
	public void setMarriage(Integer marriage) {
		this.marriage = marriage;
	}
	public Integer getSex() {
		return sex;
	}
	public void setSex(Integer sex) {
		this.sex = sex;
	}
	public Integer getSerFee() {
		return serFee;
	}
	public void setSerFee(Integer serFee) {
		this.serFee = serFee;
	}
	
	public String getUsageq() {
		return usageq;
	}
	public void setUsageq(String usageq) {
		this.usageq = usageq;
	}
	public BigDecimal getExpAmount() {
		return expAmount;
	}
	public void setExpAmount(BigDecimal expAmount) {
		this.expAmount = expAmount;
	}
	public Integer getExpCyc() {
		return expCyc;
	}
	public void setExpCyc(Integer expCyc) {
		this.expCyc = expCyc;
	}
	public Date getExpDate() {
		return expDate;
	}
	public void setExpDate(Date expDate) {
		this.expDate = expDate;
		if(null != expDate){
			SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd");
			this.setExpDateStr(sf.format(expDate));
		}
	}
	public String getExpDateStr() {
		return expDateStr;
	}
	public void setExpDateStr(String expDateStr) {
		this.expDateStr = expDateStr;
	}
	public String getMemo() {
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
	public String getFirInsReason() {
		return firInsReason;
	}
	public void setFirInsReason(String firInsReason) {
		this.firInsReason = firInsReason;
	}
	public String getSecInsReason() {
		return secInsReason;
	}
	public void setSecInsReason(String secInsReason) {
		this.secInsReason = secInsReason;
	}
	public BigDecimal getAdviseAmount() {
		return adviseAmount;
	}
	public void setAdviseAmount(BigDecimal adviseAmount) {
		this.adviseAmount = adviseAmount;
	}
	public Integer getAdviseCyc() {
		return adviseCyc;
	}
	public void setAdviseCyc(Integer adviseCyc) {
		this.adviseCyc = adviseCyc;
	}
	public String getRecom() {
		return recom;
	}
	public void setRecom(String recom) {
		this.recom = recom;
	}
	public String getRecomPhone() {
		return recomPhone;
	}
	public void setRecomPhone(String recomPhone) {
		this.recomPhone = recomPhone;
	}
	public List<ContractAttachEntity> getContractAttaches() {
		return contractAttaches;
	}
	public void setContractAttaches(List<ContractAttachEntity> contractAttaches) {
		this.contractAttaches = contractAttaches;
	}
	public BigDecimal getApprovalAmount() {
		return approvalAmount;
	}
	public void setApprovalAmount(BigDecimal approvalAmount) {
		this.approvalAmount = approvalAmount;
	}
	public Integer getApprovalCyc() {
		return approvalCyc;
	}
	public void setApprovalCyc(Integer approvalCyc) {
		this.approvalCyc = approvalCyc;
	}
	public Date getSecInsDate() {
		return SecInsDate;
	}
	public void setSecInsDate(Date secInsDate) {
		SecInsDate = secInsDate;
	}
	
	
	
	
}
